//
//  NoteListView.swift
//  WYYao
//
//  Created by wangcl on 2024/9/12.
//

import SwiftUI

struct NoteListView: View {
    @State var noteItems:[NoteItem]
    var body: some View {
        List {
            ForEach(noteItems) { item in
                NoteListItem(item: item)
            }
        }.listStyle(.plain)
    }
}

#Preview {
    NoteListView(noteItems:  [NoteItem(writeTime: "2024.09.11", title: "第一条笔记", content: "快来使用念头笔记记录生活吧～快来使用念头笔记记录生活吧～")])
}
